/**
 * FileName: CommonPage
 * Author: TangZaoBang
 * Date: 2023/04/29 13:46
 * Description:
 * <p>
 * History:
 * <author> TangZaoBang
 * <time> 2023/04/29 13:46
 * <version> 1.0.0
 * <desc> 版本描述
 */
package com.bosssoft.quickstart.demo.pojo.vo;


import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

/**
 * @Class CommonPage
 * @Description 封装了分页查询的数据内部是对PageHelper的分页结果进行包装
 * @Author TangZaoBang
 * @Date 2023/04/29 15:26
 * @Version
 */
@Data
@Slf4j
public class CommonPage<T> {

    /**
     * 总记录数
     */
    private Long total;
    /**
     * 页号
     */
    private Integer pageNum;
    /**
     * 页大小
     */
    private Integer pageSize;

    /**
     * 总页数
     */
    private Integer pages;
    /**
     * 数据列表
     */
    private List<T> data;


    public CommonPage() {
    }

    public CommonPage(Long total, Integer pageNum, Integer pageSize, Integer pages, List<T> list) {
        this.total = total;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.pages=pages;
        this.data = list;
    }







}
